High-Level Languages
Enter the support/high-level-lang/ folder and go through the practice items below.
If you get stuck, take a sneak peek at the solutions in the solution/high-level-lang/ folder.
Create programs in C, Python and Go that compute the N-th Fibonacci number.
Nis passed as a command-line argument.Use
ltraceandstraceto compute the number of library calls and system calls. Useperfto measure the running time.Compare the values of the three programs.
Create programs in C, Python and Go that copy a source file into a destination file. Both files are passed as the two command-line arguments for the program. Sample run:
student@so:~$ cp src destUse
ltraceandstraceto compute the number of library calls and system calls. Useperfto measure the running time. Use source files of different sizes. Compare the outputs of these commands on the three programs.